py_library(
    name = 'init',
    srcs = [
      '__init__.py',
    ]
)

py_library(
    name = 'keys',
    srcs = [
      'keys.py',
    ],
    deps = [
      ':init',
    ]
)

py_library(
    name = 'cache',
    srcs = [
      'cache.py',
    ],
    deps = [
      ':init',
      ':keys',
      ':cache_view',
      ':pickled_database',
    ]
)

py_library(
    name = 'cache_view',
    srcs = [
      'cache_view.py',
    ],
    deps = [
      ':init',
      ':keys',
    ]
)

py_library(
    name = 'pickled_database',
    srcs = [
      'pickled_database.py',
    ],
    deps = [
      ':init',
      ':keys',
      '//:bsddb3',
    ]
)
